<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-chargeLog-edit" th:object="${chargeLog}">
            <input id="chargeLogId" name="chargeLogId" th:field="*{chargeLogId}"  type="hidden">
			<div class="form-group">	
				<label class="col-sm-3 control-label">用户编号：</label>
				<div class="col-sm-8">
					<input id="userId" name="userId" th:field="*{userId}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">支付总额：</label>
				<div class="col-sm-8">
					<input id="chargeAmount" name="chargeAmount" th:field="*{chargeAmount}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">交易时间：</label>
				<div class="col-sm-8">
					<input id="chargeTime" name="chargeTime" th:field="*{chargeTime}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">商品描述：</label>
				<div class="col-sm-8">
					<input id="body" name="body" th:field="*{body}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">支付方式:(支付宝，微信)：</label>
				<div class="col-sm-8">
					<input id="chargeWay" name="chargeWay" th:field="*{chargeWay}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">支付状态(0：未支付;1支付成功;2:支付失败;3:退款成功)：</label>
				<div class="col-sm-8">
					<input id="payState" name="payState" th:field="*{payState}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">商户订单号：</label>
				<div class="col-sm-8">
					<input id="outTradeNo" name="outTradeNo" th:field="*{outTradeNo}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">支付单号：</label>
				<div class="col-sm-8">
					<input id="transactionId" name="transactionId" th:field="*{transactionId}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">删除状态(0：未删除，1：删除)：</label>
				<div class="col-sm-8">
					<input id="delFlag" name="delFlag" th:field="*{delFlag}" class="form-control" type="text">
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "gxgw_modules/chargeLog";
		$("#form-chargeLog-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-chargeLog-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
